/**
 * @table: ${table.tableName}
 * @author : ${parametersConfig.author}
 * @date: ${date}
 * Code Generate By RateCode
 * Code Generate Gitee : https://gitee.com/GaopanL/rateCode
 */

package ${parametersConfig.packPath}.${module};

import lombok.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("${table.tableNameConverted}")
public class ${table.tableNameConverted} <#if buildConfig.useGopal>extends AbstractEntity<${table.fieldList[0].javaType}> { <#else> { </#if>

    <#list table.fieldList as field>
    <#if !entityConfig.excludeFileds?seq_contains(field.fieldNameConverted)>
    //${field.annotation}
    @ApiModelProperty("${field.annotation}")
    <#if field.javaType = 'Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    </#if>
    private ${field.javaType} ${field.fieldNameConverted};
    </#if>
    </#list>

}